package cn.iocoder.yudao.module.wms.controller.admin.person.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 业务员档案新增/修改 Request VO")
@Data
public class PersonSaveReqVO {

    @Schema(description = "业务员id", requiredMode = Schema.RequiredMode.REQUIRED, example = "31939")
    private Long id;

    @Schema(description = "部门id", requiredMode = Schema.RequiredMode.REQUIRED, example = "6187")
    @NotNull(message = "部门不能为空")
    private Long deptId;

    @Schema(description = "业务员编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "业务员编码不能为空")
    private String code;

    @Schema(description = "业务员名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "业务员名称不能为空")
    private String name;

    @Schema(description = "性别")
    @NotNull(message = "性别不能为空")
    private Integer sex;

    @Schema(description = "出生日期")
    private LocalDateTime birthday;

}